<template>
  <div class="test">test-分包</div>
  <view>
    <uni-badge text="1"></uni-badge>
    <uni-badge text="6" type="success" @click="bindClick"></uni-badge>
    <uni-badge text="8" type="primary" :inverted="true"></uni-badge>
  </view>
</template>

<script lang="ts" setup>
import { onLoad } from "@dcloudio/uni-app";

// 页面加载后获取接口数据
onLoad(() => {
  // 原来的 wx.request 换成 uni.request
  uni.request({
    url: "",
    success(result) {
      console.log(result);
    },
  });
});
</script>

<style scoped></style>